﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ServiceModel;
using System.ComponentModel;
using ViewModel;
using serviceMaker.UserManagementService;
using serviceMaker.DirectoryService;
using GalaSoft.MvvmLight;


namespace ViewModel.User
{
    public class UserViewModelBase : InfoViewModelBase
    {

        public UserViewModelBase()
        {
            userService = new ServiceUserManagementClient();
        }
        private  ServiceUserManagementClient userService;
        public ServiceUserManagementClient UserService
        {
            get
            {
                if (userService == null)
                    userService = new ServiceUserManagementClient();
                return userService;
            }
            private set {userService = value;}
        }

        private ServiceDirectoryManagementClient directoryService;
        public ServiceDirectoryManagementClient DirectoryService
        {
            get
            {
                if (directoryService == null)
                    directoryService = new ServiceDirectoryManagementClient();
                return directoryService;
            }
            private set { directoryService = value; }
        }
    }
}
